home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / software / radiance / ez3d / unix / install < prev   
Text File  |  1996-09-21  |  521b  |  30 lines

  1. #!/bin/sh
  2. #
  3. # Cross-platform UNIX script to invoke correct Ez3d 
  4. # installation/de-installation program
  5. # Should be run from current directory
  6. # Case-insensitive check needed for Windows-compatible CD-ROM
  7. #
  8.  
  9. MCSCRIPT=./_mc.rs
  10. if [ ! -r $MCSCRIPT ]; then 
  11.    MCSCRIPT=./_MC.RS
  12. fi
  13.  
  14. RSMC=`$MCSCRIPT`
  15. if [ ! -r $RSMC ]; then
  16.     RSMC=`$MCSCRIPT -u`
  17.     if [ ! -r $RSMC ]; then
  18.        echo "Ez3d cannot run on this machine type"
  19.        exit 1
  20.     fi
  21. fi
  22.  
  23. cd $RSMC
  24. INST=INSTALL
  25. if [ ! -r $INST ]; then
  26.  INST=install
  27. fi
  28. ./$INST
  29.  
  30.